import React, { Component } from 'react';
import ReactDOM from 'react-dom';

/**
 * 没有生命周期的钩子
 */

function School(props) {
    // 函数组件中没有this指向
    console.log(this);
    return <h1>{props.saber}</h1>
}

let data = {saber: '阿尔托莉雅'}

ReactDOM.render(<School {...data}></School>, window.root)